﻿<%@ Page Title="Admin eventi periodici" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false"
    CodeFile="AdminAggiungiEventoPeriodico.aspx.vb" Inherits="AdminAggiungiEvento" %>

<%@ Register Src="WebUserControls/CntlData.ascx" TagName="CntlData" TagPrefix="uc1" %>
<%@ Register Src="WebUserControls/CntlAdmin.ascx" TagName="CntlAdmin" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        Inserimento nuovo evento<br />
        <asp:LinkButton ID="LinkButton1" runat="server">Logout</asp:LinkButton>
        <br />
        &nbsp;
        <asp:Label ID="LblCerca" runat="server" Text="Testo da cercare"></asp:Label>
        <asp:TextBox ID="TbToSearch" runat="server"></asp:TextBox>
        <asp:Button ID="BtnCerca" runat="server" Text="Cerca" />
        <asp:Button ID="BtnMostratutto" runat="server" Text="Mostra tutto" />
        <asp:GridView ID="GVEventi" runat="server" AutoGenerateColumns="False" AllowPaging="True"
            OnPageIndexChanging="GVEventi_PageIndexChanging">
            <Columns>
                <asp:BoundField DataField="PK_EventoPeriodico" HeaderText="PK_evento" />
                <asp:BoundField DataField="Nome" HeaderText="Nome Evento" />
                <asp:BoundField DataField="Giorno" HeaderText="Giorno della settimana" />
                <asp:ButtonField ButtonType="Button" CommandName="CaricaRiga" Text="Carica riga" />
                <asp:ButtonField ButtonType="Button" CommandName="EliminaRiga" Text="Elimina" />
            </Columns>
        </asp:GridView>
        <asp:Button ID="BtnSvuota" runat="server" Text="Svuota campi" />
    </div>
    <table>
        <tr>
            <td colspan="2">
                <asp:Label ID="LblNomeEvento" runat="server" Text="Nome Evento"></asp:Label>
                <asp:TextBox ID="TBNomeEvento" runat="server" Width="300px"></asp:TextBox>
            </td>
            <td colspan="2">
                <asp:CheckBoxList ID="CBGiorni" runat="server" RepeatColumns="4" RepeatDirection="Horizontal">
                    <asp:ListItem Value="1">Lunedì</asp:ListItem>
                    <asp:ListItem Value="2">Martedì</asp:ListItem>
                    <asp:ListItem Value="3">Mercoledì</asp:ListItem>
                    <asp:ListItem Value="4">Giovedì</asp:ListItem>
                    <asp:ListItem Value="5">Venerdì</asp:ListItem>
                    <asp:ListItem Value="6">Sabato</asp:ListItem>
                    <asp:ListItem Value="7">Domenica</asp:ListItem>
                    <asp:ListItem Value="8">Tutti i giorni</asp:ListItem>
                </asp:CheckBoxList>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:Label ID="LblDescrizione" runat="server" Text="Descrizione Evento"></asp:Label>
                <asp:TextBox ID="TBDescrizione" runat="server" Height="200px" TextMode="MultiLine"
                    Width="600px"></asp:TextBox>
            </td>
        </tr>
       
        <tr>
            <td>
                <asp:Label ID="LblStrada" runat="server" Text="Strada"></asp:Label>
                <asp:TextBox ID="TBStrada" runat="server" Width="300px"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="LblCivico" runat="server" Text="Civico"></asp:Label>
                <asp:TextBox ID="TBCivico" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="LblComune" runat="server" Text="Comune"></asp:Label>
                <asp:TextBox ID="TBComune" runat="server" Width="300px"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="LblCap" runat="server" Text="CAP"></asp:Label>
                <asp:TextBox ID="TBCAP" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="LblProvincia" runat="server" Text="PROV"></asp:Label>
                <asp:TextBox ID="TBProvincia" runat="server"></asp:TextBox>
            </td>
            <td colspan="3">
                <asp:Label ID="LblPresso" runat="server" Text="Presso"></asp:Label>
                <asp:TextBox ID="TBPresso" runat="server" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="LblImmagineEvento" runat="server" Text="Immagine dell'evento"></asp:Label>
            </td>
            <td>
                <asp:FileUpload ID="FUImmagineEvento" runat="server" />
            </td>
            <td colspan="2">
                <asp:Label ID="LblUploadedImmagine" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="BTNInserisci" runat="server" Text="Aggiungi come nuovo evento" />
            </td>
            <td colspan="2">
                <asp:Button ID="BtnSalva" runat="server" Text="Salva modifiche all'evento caricato" />
            </td>
        </tr>
    </table>
    <hr />
    <uc2:CntlAdmin ID="CntlAdmin1" runat="server" />
</asp:Content>
